<div class="information">
  <ul nz-menu [nzMode]="'horizontal'">
    <li permission="SID000010" *ngIf="sysUser.userState==1" nz-menu-item (click)="add(title, content, footer)">
      <i class="anticon anticon-plus"></i>添加</li>
    <!--<li permission="SID000011" nz-menu-item (click)="update(title, content, footer,'d','')">
      <i class="anticon anticon-copy"></i>详情</li>-->
    <li permission="SID000013" *ngIf="sysUser.userState==1" nz-menu-item (click)="update(title, content, footer,'m','')">
      <i class="anticon anticon-copy"></i>修改</li>
    <li permission="SID000012" *ngIf="sysUser.userState==1" nz-menu-item (click)="delete()">
      <i class="anticon anticon-delete"></i>删除</li>
    <li permission="SID000019" *ngIf="sysUser.userState==1" nz-menu-item (click)="transfer()">
      <i class="anticon anticon-plus"></i>转发</li>

  </ul>
  <nz-table #nzTable [nzDataSource]="list" nzSize="middle" [nzBordered]="true" [nzIsPagination]="false" (nzDataChange)="displayDataChange($event)">
    <thead nz-thead>
      <tr>
        <th nz-th [nzCheckbox]="true">
          <label nz-checkbox [(ngModel)]="allChecked" [nzIndeterminate]="indeterminate" (ngModelChange)="checkAll($event)">
          </label>
        </th>
        <th nz-th>
          <span>标题</span>
        </th>
        <th nz-th>
          <span>副标题</span>
        </th>
        <th nz-th>
          <span>作者</span>
        </th>
        <th nz-th>
          <span>作者机构</span>
        </th>
        <th nz-th>
          <span>附件下载</span>
        </th>
      </tr>
    </thead>
    <tbody nz-tbody>
      <tr nz-tbody-tr *ngFor="let data of list">
        <td nz-td [nzCheckbox]="true">
          <label nz-checkbox [nzDisabled]="data.disabled" [(ngModel)]="data.checked" (ngModelChange)="refreshStatus($event)">
          </label>
        </td>
        <td nz-td (click)="update(title, content, footer,'d',data)">{{data.title}}</td>


        <td nz-td>{{data.subTitle}}</td>
        <td nz-td>{{data.createUserName}}</td>
        <td nz-td>{{data.createPartyName}}</td>
        <td nz-td>
          <span>
            <button nz-button [nzSize]="'small'" [nzType]="'primary'" (click)="downLoad(data)">下载</button>
          </span>
        </td>
      </tr>
    </tbody>
  </nz-table>
  <nz-pagination [nzPageIndex]="informationBean.currentPage" nzShowTotal [nzTotal]="total" nzShowSizeChanger
    (nzPageSizeChange)="nzPageSizeChange($event)" (nzPageIndexChange)="nzPageIndexChange($event)"
    (nzPageIndexClickChange)="nzPageIndexClickChange($event)" [nzPageSize]="informationBean.pageSize"></nz-pagination>
  <!--添加页面 -->
  <ng-template #title>
    <span>{{modelTitle}}</span>
  </ng-template>
  <ng-template #content>
    <information-add *ngIf="modal==0" (outPut)="addOutPut($event)"></information-add>
 <!--   <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSpan]="9">
        <label nz-form-item-required>登录名</label>
      </div>
      <div nz-col [nzSpan]="8" nz-form-control nzHasFeedback [nzValidateStatus]="getFormControls('titles')">
        <nz-input formControlName="titles" [nzType]="'text'" [nzPlaceHolder]="'请设置用户名(数字、字母或数字结合)'" [nzSize]="'large'"
                  [(ngModel)]="titles">
        </nz-input>
        <div nz-form-explain *ngIf="getFormControls('titles').dirty&&getFormControls('titles').hasError('titles')">用户名不能为空!</div>
        <div nz-form-explain *ngIf="getFormControls('titles').dirty&&getFormControls('titles').pending">此用户名无效</div>
      </div>
    </div>-->
    <information-modify *ngIf="modal==1" [inValue]="updateData" (outPut)="addOutPut($event)"></information-modify>
    <information-detail *ngIf="model==2" [inValue]="inContent" (outPut)="addOutPut($event)"></information-detail>
  </ng-template>
  <ng-template #footer>
    <div>
    </div>
  </ng-template>
</div>
